<?php
/** ---------------------------------- PHP Handle -------------------------------**/

require dirname(__FILE__) . '/common.php';

$app = 'index';
/** ---------------------------------- HTML Template -------------------------------**/
require WEB_TOOLS_ROOT . '/header.html';

$data = isset($config[$app]) ? $config[$app] : array();
?>

<div class="projects-header page-header">
	<h2 id="theColorYouLike"><?php echo $data['h2']['tit'];?></h2>
	<p><?php echo $data['h2']['desc'];?></p>
</div>
<div class="row">
	<?php
		foreach($data['data'] as $row){
	?>
      	<div class="col-sm-6 col-md-4 col-lg-3 ">
          <div class="thumbnail">
            <div class="caption">
              <h3> 
                <a href="<?php echo strpos($row['url'],'http')!==false ? $row['url'] :  WEB_TOOLS_HOST . $row['url']; ?>" title="<?php echo $row['name']?>" ><?php echo $row['name']?><br><small>by <?php echo $row['auth']?></small></a>
              </h3>
              <p><?php echo $row['desc']?></p>
            </div>
          </div>
        </div>
	<?php
		}
	?>
</div>

<?php
require WEB_TOOLS_ROOT . '/footer.html';
?>
<?php
 /** ---------------------------------- JS Functions -------------------------------**/
?>
<script type="text/javascript">
/**
 * TODO: 请在下面放置需要的JS函数
 */
</script>